<div ng-controller="RoleCtrl" ng-init="userAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/role/list">{{'Roles'|translate}}</a></li>
        <li>

        <!-- <a href="#/role/adduser" class="sui-btn btn-primary">+{{'添加用户'|translate}}</a> -->
        <getuseropen backcall="adduser(open_id)"></getuseropen>
        
        </li>
        <span class="sui-form sui-form pull-right"> 
          <input type="text" ng-model="name"  placeholder="{{'微信昵称'|translate}}" >
          <button class="sui-btn btn-primary" type="submit" ng-click="roleuserList()">{{'search'|translate}}</button>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>#</th>
                <th>{{'头像'|translate}}</th>
                <th>{{'昵称'|translate}}</th>
                <th>{{'操作'|translate}}</th>
                <th></th>
            </tr>
        </thead>
        
        <tbody>
            <tr ng-repeat="list in itemslist">
                <td>{{list.user_id}}</td>
                <td nowrap>
                <img ng-src="{{list.avatar}}" width="100px" height="100px"></td>
                <!-- <td>{{list.is_super_admin}}</td> -->
                <!-- <td>{{list.is_sys}}</td> -->
                <td>
                    {{list.nick_name}}
                </td>
                <td nowrap></td>
                <td nowrap>
                    <!-- <a ng-if="!list.is_sys" href="#/role/add?role_id={{list.role_id}}" class="sui-btn btn-primary">{{'edit'|translate}}</a> -->
                    <button ng-if="!list.is_sys" ng-click="delbind(list.open_id)" class="sui-btn btn-danger">{{'delete'|translate}}</button>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="itemsTotal" get-data="roleuserList(pageNo)"></pager>
    <!-- 分页end -->

</div>
